package io.renren.modules.demo.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.renren.common.dao.BaseDao;
import io.renren.common.entity.XlsCirclePriEntity;
import io.renren.common.entity.XlsUserEntity;
import io.renren.modules.demo.dto.XlsCirclePriDTO;
import io.renren.modules.demo.dto.XlsUserCircleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 新零售初级圈子-七人一组
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-03-28
 */
@Mapper
public interface XlsCirclePriDao extends BaseDao<XlsCirclePriEntity> {

    IPage<XlsCirclePriDTO> queryPage(IPage<XlsCirclePriEntity> page, @Param("ew") Wrapper<XlsCirclePriEntity> queryWrapper);

    XlsUserEntity getXlsUser(@Param("circleId") Long circleId);

    List<XlsUserCircleDTO> getOne(@Param("topUserId") String topUserId);

    List<XlsUserCircleDTO> getTwo(@Param("topUserId") String topUserId);

    List<XlsUserCircleDTO> getThree(@Param("topUserId") String topUserId);
}